package cn.wolfcode.luowowo.controller;

import cn.wolfcode.luowowo.util.UploadUtil;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class UploadImg {
    @PostMapping("/coverImageUpload")
    public Object coverImageUpload(MultipartFile pic) throws Exception {
        String path = UploadUtil.uploadAli(pic);
        return path;
    }
}
